﻿@{
    ViewData["Title"] = "Home Page";
}

<div id="modalContainer">

</div>
<button type="button" id="btn_create" class="btn btn-primary">Create</button>

@section Scripts{
    <script>
            $('#btn_create').click(function () {
                console.log('click');
                $.get('@Url.Action("Create","Home")',  function (response) {
                    $('#modalContainer').append(response);
                    $('#exampleModalCenter').modal('show');
                }, 'html');
            });

    </script>
}